package com.hujf.mapreduce.outputformat;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * @author Hujf
 * @title: LogMapper
 * @date 2021/4/19:50
 * @description: TODO
 */
public class LogMapper extends Mapper<LongWritable, Text,Text, NullWritable> {

    //不作如何处理  直接写出去就行了

    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        context.write(value,NullWritable.get());
    }
}
